{extend name="layout/main" /}

{block name="header"}

{/block}

{block name="content"}
<section class="panel">
    <header class="panel-heading">
        <h4>充值</h4>
    </header>
    <div class="panel-body" style="padding-bottom: 50px">
        <form class="form-horizontal" method="post" onsubmit="return false" role="form">
            <div class="form-group">
                <label class="col-sm-2 control-label">当前余额</label>
                <div class="col-sm-5">
                    <input value="{$info->balance}" class="form-control" disabled="true">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">充值金额</label>
                <div class="col-sm-5">
                    <input type="text" name="money" class="form-control" placeholder="请输入充值金额">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">备注</label>
                <div class="col-sm-5">
                    <textarea class="form-control" rows="3" name="remark">管理员充值</textarea>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" data-url="{:url('admin/custom/recharge',['current_id'=>$Request.get.current_id])}"
                            onclick="main.ajaxPosts(this)" class="btn btn-primary">确认充值
                    </button>
                </div>
            </div>
        </form>
    </div>
</section>
{/block}